import { createRouter, createWebHistory, type RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "home",
    meta: {
      title: '请讲出你的迷茫'
    },
    component: () => import("../../src/components/tarotView.vue"),
  },

  {
    path: "/result",
    name: "result",
    meta: {
      title: '命运的指引'
    },
    component: () => import("../../src/components/tarotResult.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
